diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 32 | ||||
-rw-r--r-- | Makefile.in | 93 |
2 files changed, 32 insertions, 93 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..54a0a31 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +all: unstickpixels + +unstickpixels: unstickpixels.o + $(CC) -o $@ unstickpixels.o $(LDFLAGS) + +unstickpixels.o: unstickpixels.c arg.h + +install: unstickpixels + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin/" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/" + mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/unstickpixels" + cp -- unstickpixels "$(DESTDIR)$(PREFIX)/bin/" + cp -- unstickpixels.1 "$(DESTDIR)$(MANPREFIX)/man1/" + cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/unstickpixels" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/unstickpixels" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/unstickpixels.1" + -rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/unstickpixels" + +clean: + -rm -f -- unstickpixels *.o + +.SUFFIXES: +.SUFFIXES: .o .c + +.PHONY: all install uninstall clean diff --git a/Makefile.in b/Makefile.in deleted file mode 100644 index 18b0b10..0000000 --- a/Makefile.in +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright (C) 2015 Mattias Andrée <maandree@member.fsf.org> -# -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. This file is offered as-is, -# without any warranty. - - -### This file will be stored to Makefile once you have run ./configure. ### -### See INSTALL for information on how to install this package. ### - - - -# List of man page translations to install. -#MAN_LOCALES = - -# Can change these variables with ./configure in the same why you -# would configure them when running make. - - - -##### What is below this line is configurable, but is seldom useful. ##### - - -# Additional options for compiling info and HTML manuals. -INFO_FLAGS = - -# Additional options for compiling DVI, PDF, and PostScript manuals. -TEXINFO_FLAGS = - -# The name of the command as it should be installed. -COMMAND = unstickpixels - -# The name of the package as it should be installed. -PKGNAME = unstickpixels - - - -##### Nothing interesting below this. ##### - - -# In case you want add some configurations. Primarily -# intended for maintainers. Perhaps add GPG_KEY here. -# Of course, you can declare everthing with ./configure, -# but with this you are less likely to forget it. --include .make-configurations - - -# YOU, AS A USER, SHOULD NOT CHANGE THESE VARIABLES. {{ -# They specify how the reusable makefiles in mk/ shall behave. - -# Package information. -_PROJECT = unstickpixels -_VERSION = 2 - -# Used by mk/lang-c.mk -_C_STD = c99 -_PEDANTIC = yes -_BIN = unstickpixels -_OBJ_unstickpixels = unstickpixels -_HEADER_DIRLEVELS = 0 -_CPPFLAGS = -D'PACKAGE="$(PKGNAME)"' -D'PROGRAM_VERSION="$(_VERSION)"' -_LDFLAGS = -lgamma - -# Used by mk/texinfo.mk -_TEXINFO_DIRLEVELS = 2 -_INFOPARTS = 0 -_HAVE_TEXINFO_MANUAL = yes -_HTML_FILES = Free-Software-Needs-Free-Documentation.html GNU-Free-Documentation-License.html \ - GNU-General-Public-License.html index.html Invoking.html Overview.html \ - Rationale.html - -# Used by mk/man.mk -_MAN_PAGE_SECTIONS = 1 -_MAN_1 = unstickpixels - -# Used by mk/copy.mk -_COPYING = COPYING - -# Used by mk/dist.mk -___EVERYTHING_INFO = scrotty titlepage-data content hardcopy-copying \ - appx/fdl appx/free-software-needs-free-documentation appx/gpl \ - chap/invoking chap/overview chap/rationale \ - reusable/macros reusable/paper reusable/titlepage -_EVERYTHING = $(foreach F,$(___EVERYTHING_INFO),doc/info/$(F).texinfo) \ - $(__EVERYTHING_ALL_COMMON) DEPENDENCIES INSTALL NEWS - -# }} - - -# All of the make rules and the configurations. -include $(v)mk/all.mk - |