Browse Source

init at top of file, lazbuild trick dependency

Johann 5 năm trước cách đây
mục cha
commit
c59e2f25a8
1 tập tin đã thay đổi với 13 bổ sung12 xóa
  1. 13 12
      Makefile

+ 13 - 12
Makefile

@@ -1,12 +1,3 @@
-all: compile
-
-install: not_installable
-uninstall: not_installable
-
-not_installable:
-	echo "The library cannot be installed on the system but statically linked to another Lazarus package or application."
-
-init:
 ifeq ($(OS),Windows_NT)     # true for Windows_NT or later
   COPY := winmake\copyfile
   REMOVE := winmake\remove
@@ -22,13 +13,23 @@ else
   RUN := $(strip $(RUN))
 endif
 
-clean: init clean_bgracontrols
+all: compile
+
+install: not_installable
+uninstall: not_installable
+
+not_installable:
+	echo "The library cannot be installed on the system but statically linked to another Lazarus package or application."
+
+clean: clean_bgracontrols
 
 clean_bgracontrols:
 	$(REMOVEDIR) "lib"
 	$(REMOVEDIR) "backup"
 
-compile: init BGRAControls
-BGRAControls: bgracontrols.lpk
+compile: BGRAControls
+lazbuild:
+	#lazbuild will determine what to recompile
+BGRAControls: lazbuild bgracontrols.lpk
 	lazbuild bgracontrols.lpk