X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=simple-cdd%2Fdeb_build%2FMakefile;fp=simple-cdd%2Fdeb_build%2FMakefile;h=0000000000000000000000000000000000000000;hb=7cf8d4b77c1be839986f26cbd946ba28ae6a464e;hp=f2ed7bbfa817874dae160f8fb04cd6e69fc2071b;hpb=1a388d7d89aa3e2b3333b71829e02c68003c886b;p=debian6500.git diff --git a/simple-cdd/deb_build/Makefile b/simple-cdd/deb_build/Makefile deleted file mode 100644 index f2ed7bb..0000000 --- a/simple-cdd/deb_build/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# -*- Makefile -*- - -DIR = master-files/ - -CONFIGDIR = debian/ - -FILES = $(shell cd $(DIR); find etc/ -type f) - -TARGET = $(MODULE)_$(VERSION)_$(ARCH).deb - -OBJECTS = deb/DEBIAN/preinst \ - deb/DEBIAN/postrm \ - deb/DEBIAN/postinst \ - deb/opt/trc6500/script - -SHELL=/bin/bash -MODULE = trc6500-master-files -ARCH = all - -.DEFAULT: all -.PHONY: clean deb all - -VERSION = $(shell awk '/^$(MODULE)/ { gsub(/[()]/, ""); print $$2; exit }' debian/debian-changelog) - - -all: $(TARGET) deb - -clean: - rm -rf deb $(OBJECTS) $(TARGETS) - -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) - rm -f $@ - cat $< > $@~ - for f in $(FILES); do echo '[ -f "/'$$f'" ] && dpkg-divert --add /'$$f; done >>$@~ - echo "exit 0" >>$@~ - chmod +x $@~ - mv $@~ $@ - -deb/DEBIAN/postrm: debian/debian-postrm deb $(addprefix $(DIR)/, $(FILES)) $(MAKEFILE_LIST) - rm -f $@ - cat $< > $@~ - for f in $(FILES); do echo '[ -f "/'$$f'" ] && dpkg-divert --remove /'$$f; done >>$@~ - echo "exit 0" >>$@~ - chmod +x $@~ - mv $@~ $@ - -deb/DEBIAN/postinst: debian/debian-postinst deb - cp $< $@ - -deb/opt/trc6500/script: ../additional_scripts deb - mkdir -p deb/opt/trc6500/script/ - cp ../additional_scripts/* deb/opt/trc6500/script/ - -$(TARGET): deb $(OBJECTS) - sed s/@@version@@/$(VERSION)/ debian/debian-control > deb/DEBIAN/control - mkdir -p deb/usr/share/doc/$(MODULE) - cp debian/debian-changelog deb/usr/share/doc/$(MODULE)/changelog - cp -r $(DIR)/* deb/ - fakeroot dpkg --build deb - mv deb.deb $@