Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zathura
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
114
Issues
114
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwmt
zathura
Commits
1c22b4f3
Commit
1c22b4f3
authored
Mar 01, 2012
by
Sebastian Ramacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some Makefile issues.
* Ship all database backends. * Remove .depend in clean.
parent
be8b8f3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
Makefile
Makefile
+10
-11
tests/Makefile
tests/Makefile
+2
-2
No files found.
Makefile
View file @
1c22b4f3
...
...
@@ -4,21 +4,22 @@ include config.mk
include
common.mk
PROJECT
=
zathura
SOURCE
=
$(
shell
find
.
-iname
"*.c"
-a
!
-iname
"database-*"
!
-path
"*tests*"
)
HEADER
=
$(
shell
find
.
-iname
"*.h"
)
OBJECTS
=
$(
patsubst
%.c, %.o,
$(SOURCE)
)
DOBJECTS
=
$(
patsubst
%.c, %.do,
$(SOURCE)
)
OSOURCE
=
$(
shell
find
.
-maxdepth
1
-iname
"*.c"
-a
!
-iname
"database-*"
)
HEADER
=
$(
shell
find
.
-maxdepth
1
-iname
"*.h"
)
ifeq
(${DATABASE}, sqlite)
INCS
+=
$(SQLITE_INC)
LIBS
+=
$(SQLITE_LIB)
SOURCE
+=
database-sqlite.c
SOURCE
=
$(OSOURCE)
database-sqlite.c
else
ifeq
(${DATABASE}, plain)
SOURCE
+=
database-plain.c
SOURCE
=
$(OSOURCE)
database-plain.c
endif
endif
OBJECTS
=
$(
patsubst
%.c, %.o,
$(SOURCE)
)
DOBJECTS
=
$(
patsubst
%.c, %.do,
$(SOURCE)
)
all
:
options ${PROJECT}
options
:
...
...
@@ -89,8 +90,8 @@ dist: clean
$(QUIET)
mkdir
-p
${PROJECT}
-
${VERSION}
$(QUIET)
mkdir
-p
${PROJECT}
-
${VERSION}
/tests
$(QUIET)
cp
LICENSE Makefile config.mk common.mk README AUTHORS Doxyfile
\
${PROJECT}
.1.rst
${PROJECT}
rc.5.rst
${SOURCE}
${HEADER}
${PROJECT}
.pc.in
\
${PROJECT}
.desktop version.h.in
\
${PROJECT}
.1.rst
${PROJECT}
rc.5.rst
${
O
SOURCE}
${HEADER}
${PROJECT}
.pc.in
\
${PROJECT}
.desktop version.h.in
database-
*
.c
\
${PROJECT}
-
${VERSION}
$(QUIET)
cp
tests/Makefile tests/config.mk tests/
*
.c
\
${PROJECT}
-
${VERSION}
/tests
...
...
@@ -113,9 +114,7 @@ install: all ${PROJECT}.pc
$(QUIET)
install
-m
755
${PROJECT}
${DESTDIR}${PREFIX}
/bin
$(ECHO)
installing header files
$(QUIET)
mkdir
-p
${DESTDIR}${PREFIX}
/include/
${PROJECT}
$(QUIET)
cp
-f
version.h
${DESTDIR}${PREFIX}
/include/
${PROJECT}
$(QUIET)
cp
-f
document.h
${DESTDIR}${PREFIX}
/include/
${PROJECT}
$(QUIET)
cp
-f
zathura.h
${DESTDIR}${PREFIX}
/include/
${PROJECT}
$(QUIET)
install
-m
644 zathura.h document.h version.h
${DESTDIR}${PREFIX}
/include/
${PROJECT}
$(ECHO)
installing manual pages
$(QUIET)
mkdir
-p
${DESTDIR}${MANPREFIX}
/man1
$(QUIET)
if
which rst2man
>
/dev/null
;
then
\
...
...
tests/Makefile
View file @
1c22b4f3
...
...
@@ -8,7 +8,7 @@ PROJECT = tests
SOURCE
=
tests.c
$(
wildcard
test_
*
.c
)
OBJECTS
=
${SOURCE:.c=.o}
ZSOURCE
=
$(
shell
find ../
-
iname
"*.c"
-a
!
-iname
"database-*"
!
-iname
"main.c"
!
-path
"*tests*
"
)
ZSOURCE
=
$(
shell
find ../
-
maxdepth
1
-iname
"*.c"
-a
!
-iname
"database-*"
!
-iname
"main.c
"
)
ZOBJECTS
=
${ZSOURCE:.c=.o}
ifeq
(${DATABASE}, sqlite)
...
...
@@ -46,7 +46,7 @@ ${PROJECT}: options ${OBJECTS}
${OBJECTS}
:
../config.mk
clean
:
$(QUIET)
rm
-rf
${OBJECTS}
${PROJECT}
*
.gcno
*
.gcda
$(QUIET)
rm
-rf
${OBJECTS}
${PROJECT}
*
.gcno
*
.gcda
.depend
.PHONY
:
all options clean debug run
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment