summaryrefslogtreecommitdiff
path: root/tools/device-manager/Makefile.am
blob: 5506b714dcf31565405eea55c2d74189edfd42e7 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

devicemanagerbindir = $(bindir)

dist_devicemanagerbin_SCRIPTS = hal-device-manager

devicemanagerdir = $(datadir)/hal/device-manager

nodist_devicemanager_PYTHON =                      \
                       Const.py

devicemanager_PYTHON =                             \
                       DeviceManager.py            \
                       Device.py                   \
                       GtkAttributesFacade.py      \
                       LibGladeApplication.py      \
                       Representation.py

dist_devicemanager_DATA =                                          \
                       fdo-logo.png          hal-cat-mouse.png     \
                       hal-abstract.png      hal-cdrom.png         \
                       hal-audio.png         hal-flash.png         \
                       hal-bus-pci.png       hal-floppy.png        \
                       hal-bus-usb.png       hal-harddisk.png      \
                       hal-camera.png        hal-network.png       \
                       hal-cat-cardbus.png   hal-unknown.png       \
                       hal-cat-keyboard.png  hal-video.png         \
                       hal-computer.png      hal-serial-port.png   \
                       hal-device-manager.glade

Const.py: Const.py.in Makefile
	sed -e 's|[@]DATADIR[@]|$(datadir)|g' \
	    -e 's|[@]PACKAGE[@]|$(PACKAGE)|g' \
	    -e 's|[@]VERSION[@]|$(VERSION)|g' \
	    < $(srcdir)/$@.in > $@

hal-device-manager: hal-device-manager.in Makefile
	sed -e 's|[@]DATADIR[@]|$(datadir)|g' \
	    -e 's|[@]PACKAGE[@]|$(PACKAGE)|g' \
	    < $(srcdir)/$@.in > $@

CLEANFILES = Const.py hal-device-manager

# symlink into $(bindir) for convenience
#install-data-local :
#	$(mkinstalldirs) $(DESTDIR)$(bindir)
#	- cd $(DESTDIR)$(bindir) && $(CP) $(pkgdatadir)/device-manager/hal-device-manager hal-device-manager
#
#uninstall-local :
#	- rm -f $(DESTDIR)$(bindir)/hal-device-manager

clean-local :
	rm -f *~ *.pyc *.pyo
	rm -f hal-device-manager.glade.h