summaryrefslogtreecommitdiff
path: root/tests/Makefile.in
blob: 02a1bd463a5c9fa5f0266321a88fbaf66e7f91de (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
MKDIR      	= mkdir -p
RMDIR      	= rmdir
INSTALL         = @INSTALL@ $(INSTALL_FLAGS)
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(INSTALL_PROGRAM_FLAGS)
INSTALL_LIBRARY = @INSTALL_PROGRAM@ $(INSTALL_PROGRAM_FLAGS)
INSTALL_SCRIPT  = @INSTALL_SCRIPT@ $(INSTALL_SCRIPT_FLAGS)
INSTALL_DATA    = @INSTALL_DATA@ $(INSTALL_DATA_FLAGS)
XMLTO           = @XMLTO@

prefix          = @prefix@
exec_prefix     = @exec_prefix@
bindir          = @bindir@
mandir          = @mandir@

all:

release:
	rm -rf xdg-su tmp
	rm -f xdg-test.log *~

test:
	./testrun -IRC
	rm -rf tmp/xdgt*

distclean: clean
	rm -f Makefile

clean:	tests-clean

tests-userclean:
	rm -rf tmp/xdgt*
	find ${HOME} -name 'xdgtestdata*' | xargs rm -f
	find ${HOME} -name 'x-xdg*.xml' | xargs rm -f
	find ${HOME}/.kde/share/mimelnk -name 'x-xdg*.desktop' | xargs rm -f

tests-clean:	tests-userclean
	find `echo "${XDG_DATA_DIRS}:/usr/local/share/:/usr/share/:${XDG_CONFIG_DIRS}:/etc/xdg" | sed -e 's/:/ /g'` -name 'xdgtestdata*' | xargs rm -f
	find `echo "${XDG_DATA_DIRS}:/usr/local/share/:/usr/share/:${XDG_CONFIG_DIRS}:/etc/xdg" | sed -e 's|:| |g'` -name 'x-xdgt*' | xargs rm -f

install:

uninstall: