summaryrefslogtreecommitdiffstats
path: root/perl-install/Makefile.drakxtools
blob: c91f6dde6c8e9a49781a26077201e4c1babcce37 (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
DIRS = ddcprobe pnp_serial po Newt c pci_probing resize_fat
PREFIX = 
STANDALONEPMS= diskdrake XFdrake mousedrake lspcidrake printerdrake keyboarddrake netdrake drakxconf drakxservices draksec adduserdrake
SBINDEST = $(PREFIX)/usr/sbin
ETCDEST = $(PREFIX)/etc/gtk
BINDEST = $(PREFIX)/usr/bin
LIBDEST = $(PREFIX)/usr/lib/libDrakX
X11DEST = $(PREFIX)/usr/X11R6/lib/X11

.PHONY: $(DIRS)

all: $(DIRS)

$(DIRS):
	install -d auto
	rm standalone ; ln -s . standalone
	$(MAKE) -C $@

install:
	install -d $(BINDEST) $(ETCDEST) $(SBINDEST) $(LIBDEST) $(X11DEST) $(DIRS:%=$(LIBDEST)/%)
	install $(STANDALONEPMS) $(SBINDEST)
	install -s ddcprobe/ddcxinfos pnp_serial/pnp_serial $(SBINDEST)

	for i in *.pm ; do perl -pe '$$_ = "\n" if /\s*use\s+(diagnostics|vars|strict)/' $$i > $(LIBDEST)/$$i ; done
	install -m 644 MonitorsDB $(X11DEST)
	install -m 644 diskdrake.rc $(ETCDEST)
	install -m 644 po/*.po $(LIBDEST)/po
	install -m 644 $(patsubst %,Newt/%.pm,Newt) $(LIBDEST)/Newt
	install -m 644 $(patsubst %,c/%.pm,stuff) $(LIBDEST)/c
	install -m 644 $(patsubst %,pci_probing/%.pm,main pcitable pci_class) $(LIBDEST)/pci_probing
	install -m 644 $(patsubst %,resize_fat/%.pm,main any boot_sector c_rewritten dir_entry directory fat info_sector io) $(LIBDEST)/resize_fat
	cp -rf auto $(LIBDEST)
	find $(LIBDEST) -name "*.so" | xargs strip