Modify setup for more flexible building process

This commit is contained in:
2014-12-26 15:05:47 +01:00
parent 4c35d6757c
commit 53c00e7df8
13 changed files with 76 additions and 26 deletions

View File

@@ -1,10 +1,6 @@
base: directory cron syslog sshd hosts
ln -f $(BASE)/config build
ln -f $(BASE)/init build
ln -f $(BASE)/scripts/*_prepare.sh build/scripts
ln -f $(BASE)/scripts/*_boot.sh build/scripts
ln -f $(BASE)/scripts/*_init.sh build/scripts
ln -f $(BASE)/scripts/*_runit.sh build/scripts
ln -f $(BASE)/scripts/*_logrotate.sh build/scripts
ln -f $(BASE)/scripts/*_utilities.sh build/scripts
ln -f $(BASE)/scripts/*_cleanup.sh build/scripts
base: cron syslog sshd hosts
# $(call script,boot)
# $(call script,init)
# $(call script,runit)
# $(call script,logrotate)
# $(call script,utilities)

2
build/make/compile.mk Normal file
View File

@@ -0,0 +1,2 @@
compile:
ln -f $(BASE)/scripts/*_$@.sh build/scripts

View File

@@ -1,3 +1,3 @@
cron:
ln -f $(BASE)/scripts/*_$@.sh build/scripts
ln -f $(BASE)/runit/$@ build/runit
$(call script,$@)
$(call runit,$@)

3
build/make/gmrender.mk Normal file
View File

@@ -0,0 +1,3 @@
gmrender: compile
cp $(BASE)/scripts/*_$@.sh build/scripts
cp $(BASE)/runit/$@ build/runit

View File

@@ -1,3 +1,3 @@
hosts:
ln -f $(BASE)/scripts/*_$@.sh build/scripts
ln -f $(BASE)/boot/*_$@.sh build/boot
$(call script,$@)
$(call boot,01,$@)

2
build/make/logrotate.mk Normal file
View File

@@ -0,0 +1,2 @@
logrotate:
ln -f $(BASE)/scripts/*_$@.sh build/scripts

3
build/make/minidlna.mk Normal file
View File

@@ -0,0 +1,3 @@
minidlna: compile
ln -f $(BASE)/scripts/*_$@.sh build/scripts
ln -f $(BASE)/runit/$@ build/runit

View File

@@ -1,3 +1,3 @@
sshd:
ln -f $(BASE)/scripts/*_$@.sh build/scripts
ln -f $(BASE)/runit/$@ build/runit
$(call script,$@)
$(call runit,$@)

View File

@@ -1,3 +1,3 @@
syslog:
ln -f $(BASE)/scripts/*_$@.sh build/scripts
ln -f $(BASE)/runit/$@ build/runit
$(call script,$@)
$(call runit,$@)

3
build/make/upnpproxy.mk Normal file
View File

@@ -0,0 +1,3 @@
upnpproxy: compile
cp $(BASE)/scripts/*_$@.sh build/scripts
cp $(BASE)/runit/$@ build/runit