restore default ip configuration (2)
[debian6500.git] / trc6500-master-file / Makefile
index a9850dc8eed150e8333da4207dd70236480ba166..6573fe1c066891cc1e885248da688f20dc6b2d7c 100644 (file)
@@ -2,8 +2,6 @@
 
 DIR = ../master/
 
-CONFIGDIR = debian/
-
 FILES = $(shell cd $(DIR); find etc/ -type f)
 
 TARGET = ../$(MODULE)_$(VERSION)_$(ARCH).deb
@@ -19,7 +17,7 @@ ARCH = all
 .DEFAULT: all
 .PHONY: clean deb all
 
-VERSION = $(shell awk '/^$(MODULE)/ { gsub(/[()]/, ""); print $$2; exit }' debian/debian-changelog)
+VERSION = $(shell awk '/^$(MODULE)/ { gsub(/[()]/, ""); print $$2; exit }' changelog)
 
 
 all: $(TARGET) deb
@@ -31,7 +29,7 @@ deb:
        rm -rf deb
        mkdir --parent deb/etc/webconfig/ deb/etc/default/ deb/DEBIAN
 
-deb/DEBIAN/preinst: debian/debian-preinst deb $(addprefix $(DIR)/, $(FILES)) $(MAKEFILE_LIST)
+deb/DEBIAN/preinst: preinst deb $(addprefix $(DIR)/, $(FILES)) $(MAKEFILE_LIST)
        rm -f $@
        cat $< > $@~
        for f in $(FILES); do echo '[ -f "/'$$f'" ] && dpkg-divert --add /'$$f; done >>$@~
@@ -39,7 +37,7 @@ deb/DEBIAN/preinst: debian/debian-preinst deb $(addprefix $(DIR)/, $(FILES)) $(M
        chmod +x $@~
        mv $@~ $@
 
-deb/DEBIAN/postrm: debian/debian-postrm deb $(addprefix $(DIR)/, $(FILES)) $(MAKEFILE_LIST)
+deb/DEBIAN/postrm: postrm deb $(addprefix $(DIR)/, $(FILES)) $(MAKEFILE_LIST)
        rm -f $@
        cat $< > $@~
        for f in $(FILES); do echo '[ -f "/'$$f'" ] && dpkg-divert --remove /'$$f; done >>$@~
@@ -47,13 +45,13 @@ deb/DEBIAN/postrm: debian/debian-postrm deb $(addprefix $(DIR)/, $(FILES)) $(MAK
        chmod +x $@~
        mv $@~ $@
 
-deb/DEBIAN/postinst: debian/debian-postinst deb
+deb/DEBIAN/postinst: postinst deb
        cp $< $@
 
 $(TARGET): deb $(OBJECTS)
-       sed s/@@version@@/$(VERSION)/ debian/debian-control > deb/DEBIAN/control
+       sed s/@@version@@/$(VERSION)/ control > deb/DEBIAN/control
        mkdir -p deb/usr/share/doc/$(MODULE)
-       cp debian/debian-changelog deb/usr/share/doc/$(MODULE)/changelog
+       cp changelog deb/usr/share/doc/$(MODULE)/changelog
        cp -r $(DIR)/* deb/
        fakeroot dpkg --build deb
        mv deb.deb $@