diff options
author | Dave Hodgins <davidwhodgins@mageia.org> | 2013-10-03 18:03:05 -0400 |
---|---|---|
committer | Dave Hodgins <davidwhodgins@mageia.org> | 2013-10-03 18:03:05 -0400 |
commit | ef634b52ca7f6cb11d67044e655fc3697c3929c1 (patch) | |
tree | 22d8ca1b612d4f9c0de304fe82cf81269e98ebaf | |
parent | 4327341a2a5b41ef57f5959ca02ae8fd8cd8a2d3 (diff) | |
download | copyiso2usb-ef634b52ca7f6cb11d67044e655fc3697c3929c1.tar copyiso2usb-ef634b52ca7f6cb11d67044e655fc3697c3929c1.tar.gz copyiso2usb-ef634b52ca7f6cb11d67044e655fc3697c3929c1.tar.bz2 copyiso2usb-ef634b52ca7f6cb11d67044e655fc3697c3929c1.tar.xz copyiso2usb-ef634b52ca7f6cb11d67044e655fc3697c3929c1.zip |
Adding main Makefile
-rw-r--r-- | Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2200fc0 --- /dev/null +++ b/Makefile @@ -0,0 +1,33 @@ +VERSION = 1.0 +NAME = copyiso2usb +SUBDIRS = po +localedir = $(DESTDIR)/usr/share/locale +override CFLAGS += -DPACKAGE=\"$(NAME)\" -DLOCALEDIR=\"$(localedir)\" + +%.desktop: %.desktop.in + intltool-merge --utf8 po $< $@ -d -u -c intltool-merge-cache + +all: copyiso2usb copyiso2usb.desktop + for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done + +copyiso2usb: + cp -l control-center copyiso2usb + +clean: + $(MAKE) -C po $@ + rm -f *~ copyiso2usb core .#*[0-9] core.* *.bak + for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done + +install: all + $(MAKE) -C po $@ + install -d $(DESTDIR)/usr/{bin,sbin,share/icons} + install -m755 wrapper $(DESTDIR)/usr/bin/$(NAME) + install -m755 $(NAME) $(DESTDIR)/usr/sbin/ + for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done + +dis: dist +dist: clean + rm -rf ../$(NAME)-$(VERSION).tar* + @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz >../$(NAME)-$(VERSION).tar.xz; + $(info $(NAME)-$(VERSION).tar.xz is ready) + |