File: Makefile.am.gitignore

package info (click to toggle)
clutter-1.0 1.26.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 34,352 kB
  • sloc: ansic: 128,533; sh: 5,580; xml: 1,641; makefile: 1,613; ruby: 149; perl: 142; sed: 16
file content (27 lines) | stat: -rw-r--r-- 721 bytes parent folder | download | duplicates (6)
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
# this file should only be used in directories that generate test
# or example binaries through noinst_PROGRAMS; it is *not* a full
# generator of Git ignore files, and it's not meant to be used as
# the top-level Git ignore file generator.

GIT_IGNORE_FILES = $(noinst_PROGRAMS) $(check_PROGRAMS) $(check_SCRIPTS) $(GIT_IGNORE_EXTRA)

.gitignore: Makefile.am
	$(QUIET_GEN)if test -d "$(top_srcdir)/.git"; then \
		( echo "*.o" ; \
		  echo ".gitignore" ; \
		) > .gitignore ; \
		for p in $(GIT_IGNORE_FILES); do \
			echo "/$$p" >> .gitignore ; \
		done \
	fi

gitignore: .gitignore

gitignore-clean:
	$(QUIET_RM)rm -f .gitignore

.PHONY: gitignore gitignore-clean

all-am: gitignore

maintainer-clean: gitignore-clean