summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: c5b3d72f3ee8c235470ccb97a2ef9d60a5ce6960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)