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
48d06cbf
Commit
48d06cbf
authored
Mar 08, 2012
by
Sebastian Ramacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use wildcard and filter-out instead of find.
parent
b1893b47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
Makefile
Makefile
+6
-4
tests/Makefile
tests/Makefile
+6
-3
No files found.
Makefile
View file @
48d06cbf
...
...
@@ -4,14 +4,16 @@ include config.mk
include
common.mk
PROJECT
=
zathura
OSOURCE
=
$(
shell
find
.
-maxdepth
1
-iname
"*.c"
-a
!
-iname
"database-sqlite.c"
)
HEADER
=
$(
shell
find
.
-maxdepth
1
-iname
"*.h"
)
OSOURCE
=
$(
wildcard
*
.c
)
HEADER
=
$(
wildcard
*
.h
)
ifneq
(${WITH_SQLITE},0)
INCS
+=
$(SQLITE_INC)
LIBS
+=
$(SQLITE_LIB)
SOURCE
=
$(OSOURCE)
database-sqlite.c
SOURCE
=
$(OSOURCE)
CPPFLAGS
+=
-DWITH_SQLITE
else
SOURCE
=
$(
filter-out
database-sqlite.c,
$(OSOURCE)
)
endif
ifneq
($(wildcard ${VALGRIND_SUPPRESSION_FILE}),)
...
...
@@ -91,7 +93,7 @@ dist: clean
$(QUIET)
mkdir
-p
${PROJECT}
-
${VERSION}
/po
$(QUIET)
cp
LICENSE Makefile config.mk common.mk README AUTHORS Doxyfile
\
${PROJECT}
.1.rst
${PROJECT}
rc.5.rst
${OSOURCE}
${HEADER}
${PROJECT}
.pc.in
\
${PROJECT}
.desktop version.h.in
database-sqlite.c
\
${PROJECT}
.desktop version.h.in
\
${PROJECT}
-
${VERSION}
$(QUIET)
cp
tests/Makefile tests/config.mk tests/
*
.c
\
${PROJECT}
-
${VERSION}
/tests
...
...
tests/Makefile
View file @
48d06cbf
...
...
@@ -8,18 +8,21 @@ PROJECT = tests
SOURCE
=
tests.c
$(
wildcard
test_
*
.c
)
OBJECTS
=
${SOURCE:.c=.o}
ZSOURCE
=
$(
shell
find ../
-maxdepth
1
-iname
"*.c"
-a
!
-iname
"database-sqlite.c"
!
-iname
"main.c"
)
ZOBJECTS
=
${ZSOURCE:.c=.o}
ZOSOURCE
=
$(
filter-out
../main.c,
$(
wildcard
../
*
.c
))
ifneq
(${WITH_SQLITE},0)
INCS
+=
$(SQLITE_INC)
LIBS
+=
$(SQLITE_LIB)
ZSOURCE
+=
../database-sqlite.c
ZSOURCE
+=
$(ZOSOURCE)
ifeq
(,$(findstring -DWITH_SQLITE,${CPPFLAGS}))
CPPFLAGS
+=
-DWITH_SQLITE
endif
else
ZSOURCE
=
$(
filter-out
database-sqlite.c,
$(ZOSOURCE)
)
endif
ZOBJECTS
=
${ZSOURCE:.c=.o}
all
:
${PROJECT}
run
:
${PROJECT}
...
...
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