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,share/icons} install -m755 $(NAME) $(DESTDIR)/usr/bin/ 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)