blob: 2200fc08b949af7c1208c4c673e52bcc44e3a9c3 (
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
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)
|