make the generated files with paths depend on the Makefile, and clean them when you run make clean
This commit is contained in:
parent
7dde22a1b3
commit
9a0af18e4b
5 changed files with 23 additions and 48 deletions
59
Makefile.am
59
Makefile.am
|
@ -375,59 +375,24 @@ edit = $(SED) \
|
|||
-e 's!@configdir\@!$(configdir)!' \
|
||||
-e 's!@bindir\@!$(bindir)!'
|
||||
|
||||
data/xsession/openbox-gnome.desktop: \
|
||||
$(srcdir)/data/xsession/openbox-gnome.desktop.in
|
||||
%.desktop: %.desktop.in Makefile
|
||||
@echo make: creating $@
|
||||
@mkdir data 2>/dev/null || true
|
||||
@mkdir data/xsession 2>/dev/null || true
|
||||
# @mkdir data/xsession 2>/dev/null || true
|
||||
@$(edit) $< >$@
|
||||
|
||||
data/xsession/openbox-kde.desktop: \
|
||||
$(srcdir)/data/xsession/openbox-kde.desktop.in
|
||||
%-session: %-session.in Makefile
|
||||
@echo make: creating $@
|
||||
@mkdir data 2>/dev/null || true
|
||||
@mkdir data/xsession 2>/dev/null || true
|
||||
# @mkdir data/xsession 2>/dev/null || true
|
||||
@$(edit) $< >$@
|
||||
|
||||
data/xsession/openbox.desktop: \
|
||||
$(srcdir)/data/xsession/openbox.desktop.in
|
||||
@echo make: creating $@
|
||||
@mkdir data 2>/dev/null || true
|
||||
@mkdir data/xsession 2>/dev/null || true
|
||||
@$(edit) $< >$@
|
||||
|
||||
data/xsession/openbox-gnome-session: \
|
||||
$(srcdir)/data/xsession/openbox-gnome-session.in
|
||||
@echo make: creating $@
|
||||
@mkdir data 2>/dev/null || true
|
||||
@mkdir data/xsession 2>/dev/null || true
|
||||
@$(edit) $< >$@
|
||||
@chmod a+x $@
|
||||
|
||||
data/xsession/openbox-kde-session: \
|
||||
$(srcdir)/data/xsession/openbox-kde-session.in
|
||||
@echo make: creating $@
|
||||
@mkdir data 2>/dev/null || true
|
||||
@mkdir data/xsession 2>/dev/null || true
|
||||
@$(edit) $< >$@
|
||||
@chmod a+x $@
|
||||
|
||||
data/xsession/openbox-session: \
|
||||
$(srcdir)/data/xsession/openbox-session.in
|
||||
@echo make: creating $@
|
||||
@mkdir data 2>/dev/null || true
|
||||
@mkdir data/xsession 2>/dev/null || true
|
||||
@$(edit) $< >$@
|
||||
@chmod a+x $@
|
||||
|
||||
%.1.in: %.1.sgml
|
||||
@echo make: creating $@
|
||||
@mkdir doc 2>/dev/null || true
|
||||
# @mkdir doc 2>/dev/null || true
|
||||
@docbook-to-man $< >$@
|
||||
|
||||
%.1: %.1.in
|
||||
%.1: %.1.in Makefile
|
||||
@echo make: creating $@
|
||||
@mkdir doc 2>/dev/null || true
|
||||
# @mkdir doc 2>/dev/null || true
|
||||
@$(edit) $< >$@
|
||||
|
||||
dist_gnomewmfiles_DATA = \
|
||||
|
@ -507,6 +472,16 @@ EXTRA_DIST = \
|
|||
config.rpath \
|
||||
mkinstalldirs
|
||||
|
||||
# make clean doesn't delete these for some reason, even though they are
|
||||
# built by make
|
||||
CLEANFILES = \
|
||||
data/xsession/openbox-session \
|
||||
data/xsession/openbox-gnome-session \
|
||||
data/xsession/openbox-kde-session \
|
||||
data/xsession/openbox.desktop \
|
||||
data/xsession/openbox-gnome.desktop \
|
||||
data/xsession/openbox-kde.desktop
|
||||
|
||||
#doc:
|
||||
# $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
|
||||
|
||||
|
|
|
@ -16,4 +16,4 @@ The program's full documentation is available on the website:
|
|||
.PP
|
||||
Please report bugs to: \fBhttp://bugzilla.icculus.org/
|
||||
\fP
|
||||
.\" created by instant / docbook-to-man, Mon 21 May 2007, 23:11
|
||||
.\" created by instant / docbook-to-man, Tue 22 May 2007, 00:06
|
||||
|
|
|
@ -16,4 +16,4 @@ The program's full documentation is available on the website:
|
|||
.PP
|
||||
Please report bugs to: \fBhttp://bugzilla.icculus.org/
|
||||
\fP
|
||||
.\" created by instant / docbook-to-man, Mon 21 May 2007, 23:11
|
||||
.\" created by instant / docbook-to-man, Tue 22 May 2007, 00:06
|
||||
|
|
|
@ -36,4 +36,4 @@ The program's full documentation is available on the website:
|
|||
.PP
|
||||
Please report bugs to: \fBhttp://bugzilla.icculus.org/
|
||||
\fP
|
||||
.\" created by instant / docbook-to-man, Mon 21 May 2007, 23:11
|
||||
.\" created by instant / docbook-to-man, Tue 22 May 2007, 00:06
|
||||
|
|
|
@ -92,4 +92,4 @@ The program's full documentation is available on the website:
|
|||
.PP
|
||||
Please report bugs to: \fBhttp://bugzilla.icculus.org/
|
||||
\fP
|
||||
.\" created by instant / docbook-to-man, Mon 21 May 2007, 23:10
|
||||
.\" created by instant / docbook-to-man, Tue 22 May 2007, 00:06
|
||||
|
|
Loading…
Reference in a new issue